module.exports = function(sequelize, DataTypes) {
  return sequelize.define(
    "sys_role",
    {
      id: { type: DataTypes.INTEGER, autoIncrement: true, unique: true },
      code: { type: DataTypes.STRING, primaryKey: true },
      name: DataTypes.STRING
    },
    {
      underscored: true
    }
  );
};
